
package at.fhj.itm.metadata.impl.postgres;


import at.fhj.itm.metadata.MetadataItem;
import at.fhj.itm.metadata.impl.AbstractPredureArgument;


/**
 *
 * @author Seuchter
 */
public class PostgresProcedureArgument extends AbstractPredureArgument
        implements Comparable<PostgresProcedureArgument> {
    protected PostgresSqlDataType type;
    protected int position;
    
    public PostgresProcedureArgument(final int position, final String name,
            PostgresSqlDataType type){
        super(name);
        this.position = position;
        this.type = type;
    }

    public int getPosition(){
        return position;
    }

    public PostgresSqlDataType getType(){
        return type;
    }

    public int compareTo(PostgresProcedureArgument t) {
        return getPosition() - t.getPosition();
    }

    public PostgresProcedureArgument copy() {
       return new PostgresProcedureArgument(getPosition(), getName(), getType().copy());
    }




}
